package com.web.exiaodao.remote.vo;

import com.web.webstart.base.util.PinyinUtil;
import com.web.webstart.base.util.XaUtil;
import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;

/**
 * @ClassName: SysAreaVo
 * @Description:城市区域 Vo
 * @author eason.zt
 * @date  2017-01-12 16:16:52
 *
 */
@ApiModel(value="城市区域Vo对象")
public class SysAreaVo {

	@ApiModelProperty(value="主键，自动增长")
	private Long id;
	
	@ApiModelProperty(value="创建时间")
	private String createTime;
	
 	@ApiModelProperty(value="区域名称,AreaName")
	private String areaName;
	private String areaNamePinyi;//区域的中文拼音
	@ApiModelProperty(value="区域类型,areaType（1:区域(国内0，国外1) 2:具体的城市）")
	private Integer areaType;
	@ApiModelProperty(value="父资源id,父资源id")
	private Long parentId;
	@ApiModelProperty(value="排序id,排序id")
	private Long orderNum;
	@ApiModelProperty(value="首字母,Letter")
	private String letter;
	@ApiModelProperty(value="是否热点城市,是否热点城市")
	private Boolean isHot;
		
	public SysAreaVo(Long id,String areaName,Integer areaType,Long parentId,Long orderNum,String letter,Boolean isHot) {
		this.id = id;
		this.areaName = areaName;
		this.areaType = areaType;
		this.parentId = parentId;
		this.orderNum = orderNum;
		this.letter = letter;
		this.isHot = isHot;
	}
	
	public SysAreaVo() {
		super();
	}
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	
		public void setAreaName(String areaName){
		this.areaName=areaName;
	}
	
	public String getAreaName(){
		return areaName;
	}
		public void setAreaType(Integer areaType){
		this.areaType=areaType;
	}
	
	public Integer getAreaType(){
		return areaType;
	}
		public void setParentId(Long parentId){
		this.parentId=parentId;
	}
	
	public Long getParentId(){
		return parentId;
	}
		public void setOrderNum(Long orderNum){
		this.orderNum=orderNum;
	}
	
	public Long getOrderNum(){
		return orderNum;
	}
		public void setLetter(String letter){
		this.letter=letter;
	}
	
	public String getLetter(){
		return letter;
	}
		public void setIsHot(Boolean isHot){
		this.isHot=isHot;
	}
	
	public Boolean getIsHot(){
		return isHot;
	}

	public String getAreaNamePinyi() {
		return XaUtil.isNotEmpty(areaNamePinyi) ? PinyinUtil.getPinYin(areaNamePinyi) : "";
	}

	public void setAreaNamePinyi(String areaNamePinyi) {
		this.areaNamePinyi = areaNamePinyi;
	}
}

